c48abe4c1fbebe1052a53840fee98be91316f3f2,test/unit/org/apache/cassandra/db/NameSortTest.java,NameSortTest,validateNameSort,#Table#number#,96

Before Change


            Collection<IColumn> columns = cf.getSortedColumns();
            for (IColumn column : columns)
            {
                int j = Integer.valueOf(new String(column.name().array(),column.name().position(),column.name().remaining()).split("-")[1]);
                byte[] bytes = j % 2 == 0 ? "a".getBytes() : "b".getBytes();
                assertEquals(new String(bytes), new String(column.value().array(), column.value().position(), column
                        .value().remaining()));

After Change


            Collection<IColumn> columns = cf.getSortedColumns();
            for (IColumn column : columns)
            {
                String name = ByteBufferUtil.string(column.name());
                int j = Integer.valueOf(name.substring(name.length() - 1));
                byte[] bytes = j % 2 == 0 ? "a".getBytes() : "b".getBytes();
                assertEquals(new String(bytes), ByteBufferUtil.string(column.value()));